package com.example.petstoreservice.entity;

import jakarta.persistence.Column;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderItems {
    @Column(name="id")
    private Long id;
    @Column(name="orderId")
    private Long orderId;
    @Column(name="orderIdString")
    private String orderIdString;
    @Column(name="productId")
    private Long productId;
    @Column(name="product")
    private Product product;
    @Column(name="quantity")
    private Long quantity;
    @Column(name="total",precision = 10,scale = 2)
    private BigDecimal total;


}
